﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="ZX.WebApp.Index" %>
<%@ Register Assembly="ZX.Web.UI.Controls" Namespace="ZX.Web.UI.Controls" TagPrefix="ZX" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>精彩（东盛）布行ERP管理系统</title>
    <script src="Scripts/EasyUI/js/jquery-1.6.min.js" type="text/javascript"></script>
    <link href="Scripts/EasyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/EasyUI/js/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="Scripts/EasyUI/js/jquery-outlook.js" type="text/javascript"></script>
    <script src="Scripts/fullscreen.js" type="text/javascript"></script>
    <script src="Scripts/jquery.comet.js" type="text/javascript"></script>
    <link href="Styles/show/css/show-bar.css" rel="stylesheet" type="text/css" />
    <script src="KM/FullTextSearch/Script/smartFocus.js" type="text/javascript"></script>
    <script src="Scripts/AspNetComet.js" type="text/javascript"></script>
    <link href="Styles/qqfudong/css/style.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
/* online */
#online_qq_tab a,.onlineMenu h3,.onlineMenu li.tli,.newpage{background:url(Styles/qqfudong/images/float_s.jpg) no-repeat;}
#onlineService,.onlineMenu,.btmbg{background:url(Styles/qqfudong/images/float_bg.gif) no-repeat;}

#online_qq_layer{z-index:9999999;position:fixed;right:0px;bottom:0;margin:0px 0 10px 0;}
*html,*html body{background-image:url(about:blank);background-attachment:fixed;}
*html #online_qq_layer{position:absolute;top:expression(eval(document.documentElement.scrollTop));}

#online_qq_tab{width:28px;float:left;margin:120px 0 0 0;position:relative;z-index:9;}
#online_qq_tab a{display:block;height:118px;line-height:999em;overflow:hidden;}
#online_qq_tab a#floatShow{background-position:-30px -374px;}
#online_qq_tab a#floatHide{background-position:0 -374px;}

#onlineService{display:inline;margin-left:-1px;float:left;width:130px;display:none;background-position:0 0;padding:10px 0 0 0;}
.onlineMenu{background-position:-262px 0;background-repeat:repeat-y;padding:0 15px;}
.onlineMenu h3{height:36px;line-height:999em;overflow:hidden;border-bottom:solid 1px #ACE5F9;}
.onlineMenu h3.tQQ{background-position:0 10px;}
.onlineMenu h3.tele{background-position:0 -47px;}
.onlineMenu li{height:36px;line-height:36px;border-bottom:solid 1px #E6E5E4;text-align:center;}
.onlineMenu li.tli{padding:0 0 0 28px;font-size:12px;text-align:left;}
.onlineMenu li.zixun{background-position:0px -131px;}
.onlineMenu li.fufei{background-position:0px -190px;}
.onlineMenu li.phone{background-position:0px -244px;}
.onlineMenu li a.newpage{display:block;height:36px;line-height:999em;overflow:hidden;background-position:5px -100px;}
.onlineMenu li img{margin:8px 0 0 0;}
.onlineMenu li.last{border:0;}

.wyzx{padding:8px 0 0 3px;height:3px;overflow:hidden;background:url(Styles/qqfudong/images/webZx_bg.jpg) no-repeat;}

.btmbg{height:12px;overflow:hidden;background-position:-131px 0;}
</style>
    <script type="text/javascript" defer="defer">
        var _UserID = "<%=this.UserId %>",
            _UserName = "<%=this.UserName%>";
        var smartDefaultValue = "知识文档搜索";

        //{Date:2013-08-28 16:00,Author:wangjihui,Mail:394594745@qq.com,Desc:方便本地调试代码,在fullscreen.js文件里已经屏蔽 function unContextMenu(obj)。}
        <%=strScript %> 
        //结束

        $(function () {
            $("ul[id^='leftTree']").tree({
                onClick: function (node) {
                    $(this).tree('toggle', node.target);
                }
            });
            //jQuery(document).bind('keypress', 'return', function (evt) {
            //    searchFun(); return false;
            //}); 

            //$(document).bind("contextmenu", function (e) { return false; }); 
            $("#txtFullSearch").smartFocus({ defaultText: smartDefaultValue });
            $("#btnFullSearch").bind("click", function () {
                searchFun();
            });
            //showHeader('image', 'Styles/show/showImages/showHeader.jpg'); //显示方式(image|swf)  显示文件名
        });
        var searchFun = function () {
            var vl = $("#txtFullSearch").val();
            if (vl == "") {
                alert("请输入关键字");
                return;
            }

            var url = "KM/FullTextSearch/FullTextSearchList.aspx?key=" + vl;
            var pagetitle = "全文搜索";
            $("#tabs").tabs('close', pagetitle);
            addTabs(pagetitle, url);
        }
        $(function () {
            $('#dd').dialog({ modal: true });
            $('#dd').dialog('close');
            //$('#dataedit').dialog({ buttons: [{text:'确定',iconCls:'icon-ok',handler:function(){}},{text:'取消',iconCls:'icon-cancel',handler:function(){}}] });
            //$('#dataedit').dialog('close');
            
        });
        var _fn;
        var _cpage;
        function PostForumPost(url, fn, cpage, title) {
            _fn = fn;
            _cpage = cpage;
            document.getElementById("forumPostFrame").src = url;
            $('#forumPost').dialog('open');
            if (typeof(title) != "undefined") {
                $('#forumPost').dialog("setTitle", title);
            }
            else {
                $('#forumPost').dialog("setTitle", "发贴");
            }
        }

        function PostForumClose() {
            $('#forumPost').dialog('close');
            if (typeof (_fn) == "function") {
                //_fn();
            }
            if (_cpage) {
                _cpage.fn();
            }
        }
        function show(url) {
           document.getElementById("forumPostFrame").src = url;
           $('#forumPost').dialog('open');
       }

       document.onkeydown = function () //用户的按键事件
       {
           if (event.keyCode == 8)      //如果按下的是退格键
           {
               if (event.srcElement.tagName.toLowerCase() != "input"
           && event.srcElement.tagName.toLowerCase() != "textarea") //如果是在textarea内
                   event.returnValue = false;                              //不执行任何操作
           }

       }

       ///关闭当前页
       function CloseCurPage() {
           $("#tabs").tabs('close', $($("#tabs .tabs-selected")[0]).text());
           
           if (this.NeedRefreshPage != null) {
                if (typeof (this.NeedRefreshPage.LoadData) == "function") {
                //debugger;
                    this.NeedRefreshPage.RefreshData();
                }
            }
       }

       var cachePage = [];
       var _refreshPage = null;
//       $(document).ready(function () {
//          // _fullScreen();
//       });

    
    
    </script>
<script>
    var _currentUserID = '<%=User.UserID %>',
        _currentUserName = '<%=User.UName %>';
    var _currentUser = <% =UserJson %>;
    var _currentEmloyeeInfo=<%=EmployeeInfo %>;

</script>
</head>
<body class="easyui-layout">
       <div style="display:none;background-color:#eee;" id="Div2">
       <div style="width:500px;height:450px; padding:50px; margin:50x;">
          <div style="border:1px solid #ddd; padding:15px;">
          <label>请输入密码：</label><br />
          <span><input  type="password" id="tPassword" style="width:200px"/></span>
          </div>
          <div style=" padding-left:160px;border:1px solid #ddd;">
            <button id="btnCheck" name="btnCheck">确定</button>
          </div>
       </div>
    </div>
    <div class="gg_full wrapfix">
        <div class="gg_fbtn">
            <a style="display: none" class="gg_freplay" title="重播" href="#"></a><a class="gg_fclose"
                title="关闭" href="#"></a>
        </div>
        <div class="gg_fcon">
        </div>
    </div>
<%-- <script src="Styles/show/js/show-bar.js" type="text/javascript"></script>--%>
    <noscript>
        <div style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px;
            width: 100%; background: white; text-align: center;">
            <span>抱歉，请开启脚本支持！</span>
        </div>
    </noscript>
    <div style="display: none" id="full">
    </div>
    <div id="pageloading">
    </div>
    <div id="North" region="north" class="head" 
        style="height:auto; padding: 0px; background: url('Images/png/index_logo7.jpg') repeat-x;">
        
        <div style="width:100%; float:right;">
            <span style="display:block; text-align:right; width:100%; margin-right:-15px; padding-top: 30px;">
                <!--<input type="text" id="txtFullSearch" style="width:80px; height:13px;" />-->
                <!--<a href="javascript:void(0)" id="btnFullSearch"><font style="color: Blue">搜索</font></a>-->

                <%--<a href="#" onclick="addTabs('我的主页','DeskTop/Form/DesktopMain.aspx');">
                    <font style="color: Blue">首页</font>
                </a> --%>

                <%--<a href="#" onclick="addTabs('桌面设置','DeskTop/Form/DesktopConfigForUser.aspx');">
                    <font style="color: Blue">桌面设置</font>
                </a>--%>
                <a href="#" onclick="addTabs('修改密码','ModifyPassword.aspx');">
                    <font style="color: Blue">
                    修改密码</font>
                </a>&nbsp;&nbsp;欢迎您：
                <asp:Label ID="labUserName" runat="server" Text=""></asp:Label>(<%=this.EmpPropertyValues.PostName %>)！&nbsp;&nbsp; 
                <<%--a href="#" onclick="zhansuo();">帮助</a>&nbsp;&nbsp; --%>
                <a href="#" id="loginOut">安全退出</a>

            </span>
        </div>
        <!--
        <div style="width:35%;">
            <span style="padding-left: 10px;
                font-size: 16px; width: 287px;">
                <img src="Images/png/index_logo7.jpg" width="287" height="52" align="absmiddle" />
            </span>
        </div>
        -->
    </div>
    <div id="West" region="west" hide="true" split="true" title="导航菜单" style="width: 200px;
        padding: 1px; overflow: hidden;">
        <div id="nav" class="easyui-accordion" fit="true" border="false" animate="false">
            <ZX:ListMenu ID="ListMenu1" runat="server">
            </ZX:ListMenu>
            <%=workFlowTree%>
        </div>
    </div>
    <div id="mainPanle" region="center" style="background: #eee; overflow-y: hidden">
        <div id="tabs" class="easyui-tabs" fit="true" border="false">
        </div>
    </div>
    <div id="dd" title="消息" style="width:680px;height:360px;">
         <iframe src="" id="Dialog" width="100%" height="100%" scrolling=no frameborder=0></iframe>
    </div>

    <div id="forumPost" title="发贴" style="width:850px;height:550px;" class="easyui-window" modal="true" closed="true">
         <iframe src="" id="forumPostFrame" width="100%" height="100%" scrolling="no" frameborder="0"></iframe>
    </div>


    <div id="dataedit" title="testing" style="width:750px;height:550px;">
         <iframe src="" id="dataeditpage" width="100%" height="100%" scrolling=yes frameborder=0></iframe>
    </div>
        <div id="Div1" title="" style="width:750px;height:550px;display:none">
         <iframe src="" id="mRefresh" width="100%" height="100%" scrolling=yes frameborder=0></iframe>
    </div>
    <div id="mm" class="easyui-menu" style="width: 150px;">
        <div id="mm-tabupdate">
            刷新</div>
        <div class="menu-sep">
        </div>
        <div id="mm-tabclose">
            关闭</div>
        <div id="mm-tabcloseall">
            全部关闭</div>
        <div id="mm-tabcloseother">
            除此之外全部关闭</div>
        <div class="menu-sep">
        </div>
        <div id="mm-tabcloseright">
            当前页右侧全部关闭</div>
        <div id="mm-tabcloseleft">
            当前页左侧全部关闭</div>
        <div class="menu-sep">
        </div>
        <div id="mm-exit">
            退出</div>
    </div>
    
</body>
     


</html>
